/** layui-v1.0.9_rls MIT License By http://www.layui.com */ ;
! function(e) {
    "use strict";
    var t = function() { this.v = "1.0.9_rls" };
    t.fn = t.prototype;
    var n = document,
        o = t.fn.cache = {},
        i = function() {
            var e = n.scripts,
                t = e[e.length - 1].src;
            return t.substring(0, t.lastIndexOf("/") + 1)
        }(),
        r = function(t) { e.console && console.error && console.error("Layui hint: " + t) },
        l = "undefined" != typeof opera && "[object Opera]" === opera.toString(),
        a = { layer: "modules/layer", laydate: "modules/laydate", laypage: "modules/laypage", laytpl: "modules/laytpl", layim: "modules/layim", layedit: "modules/layedit", form: "modules/form", upload: "modules/upload", tree: "modules/tree", table: "modules/table", element: "modules/element", util: "modules/util", flow: "modules/flow", carousel: "modules/carousel", code: "modules/code", jquery: "modules/jquery", mobile: "modules/mobile", "layui.all": "dest/layui.all" };
    o.modules = {}, o.status = {}, o.timeout = 10, o.event = {}, t.fn.define = function(e, t) {
        var n = this,
            i = "function" == typeof e,
            r = function() {
                return "function" == typeof t && t(function(e, t) { layui[e] = t, o.status[e] = !0 }), this
            };
        return i && (t = e, e = []), layui["layui.all"] || !layui["layui.all"] && layui["layui.mobile"] ? r.call(n) : (n.use(e, r), n)
    }, t.fn.use = function(e, t, u) {
        function s(e, t) {
            var n = "PLaySTATION 3" === navigator.platform ? /^complete$/ : /^(complete|loaded)$/;
            ("load" === e.type || n.test((e.currentTarget || e.srcElement).readyState)) && (o.modules[m] = t, y.removeChild(p), function i() {
                return ++v > 1e3 * o.timeout / 4 ? r(m + " is not a valid module") : void(o.status[m] ? c() : setTimeout(i, 4))
            }())
        }

        function c() { u.push(layui[m]), e.length > 1 ? f.use(e.slice(1), t, u) : "function" == typeof t && t.apply(layui, u) }
        var f = this,
            d = o.dir = o.dir ? o.dir : i,
            y = n.getElementsByTagName("head")[0];
        e = "string" == typeof e ? [e] : e, window.jQuery && jQuery.fn.on && (f.each(e, function(t, n) { "jquery" === n && e.splice(t, 1) }), layui.jquery = jQuery);
        var m = e[0],
            v = 0;
        if (u = u || [], o.host = o.host || (d.match(/\/\/([\s\S]+?)\//) || ["//" + location.host + "/"])[0], 0 === e.length || layui["layui.all"] && a[m] || !layui["layui.all"] && layui["layui.mobile"] && a[m]) return c(), f;
        var p = n.createElement("script"),
            h = (a[m] ? d + "lay/" : o.base || "") + (f.modules[m] || m) + ".js";
        return p.async = !0, p.charset = "utf-8", p.src = h + function() {
            var e = o.version === !0 ? o.v || (new Date).getTime() : o.version || "";
            return e ? "?v=" + e : ""
        }(), o.modules[m] ? ! function g() {
            return ++v > 1e3 * o.timeout / 4 ? r(m + " is not a valid module") : void("string" == typeof o.modules[m] && o.status[m] ? c() : setTimeout(g, 4))
        }() : (y.appendChild(p), !p.attachEvent || p.attachEvent.toString && p.attachEvent.toString().indexOf("[native code") < 0 || l ? p.addEventListener("load", function(e) { s(e, h) }, !1) : p.attachEvent("onreadystatechange", function(e) { s(e, h) })), o.modules[m] = h, f
    }, t.fn.getStyle = function(t, n) {
        var o = t.currentStyle ? t.currentStyle : e.getComputedStyle(t, null);
        return o[o.getPropertyValue ? "getPropertyValue" : "getAttribute"](n)
    }, t.fn.link = function(e, t, i) {
        var l = this,
            a = n.createElement("link"),
            u = n.getElementsByTagName("head")[0];
        "string" == typeof t && (i = t);
        var s = (i || e).replace(/\.|\//g, ""),
            c = a.id = "layuicss-" + s,
            f = 0;
        a.rel = "stylesheet", a.href = e + (o.debug ? "?v=" + (new Date).getTime() : ""), a.media = "all", n.getElementById(c) || u.appendChild(a), "function" == typeof t && ! function d() {
            return ++f > 1e3 * o.timeout / 100 ? r(e + " timeout") : void(1989 === parseInt(l.getStyle(n.getElementById(c), "width")) ? function() { t() }() : setTimeout(d, 100))
        }()
    }, t.fn.addcss = function(e, t, n) { layui.link(o.dir + "css/" + e, t, n) }, t.fn.img = function(e, t, n) {
        var o = new Image;
        return o.src = e, o.complete ? t(o) : (o.onload = function() { o.onload = null, t(o) }, void(o.onerror = function(e) { o.onerror = null, n(e) }))
    }, t.fn.config = function(e) {
        e = e || {};
        for (var t in e) o[t] = e[t];
        return this
    }, t.fn.modules = function() {
        var e = {};
        for (var t in a) e[t] = a[t];
        return e
    }(), t.fn.extend = function(e) {
        var t = this;
        e = e || {};
        for (var n in e) t[n] || t.modules[n] ? r("模块名 " + n + " 已被占用") : t.modules[n] = e[n];
        return t
    }, t.fn.router = function(e) {
        for (var t, n = (e || location.hash).replace(/^#/, "").split("/") || [], o = { dir: [] }, i = 0; i < n.length; i++) t = n[i].split("="), /^\w+=/.test(n[i]) ? function() { "dir" !== t[0] && (o[t[0]] = t[1]) }() : o.dir.push(n[i]), t = null;
        return o
    }, t.fn.data = function(t, n) {
        if (t = t || "layui", e.JSON && e.JSON.parse) {
            if (null === n) return delete localStorage[t];
            n = "object" == typeof n ? n : { key: n };
            try {
                var o = JSON.parse(localStorage[t])
            } catch (i) {
                var o = {}
            }
            return n.value && (o[n.key] = n.value), n.remove && delete o[n.key], localStorage[t] = JSON.stringify(o), n.key ? o[n.key] : o
        }
    }, t.fn.device = function(t) {
        var n = navigator.userAgent.toLowerCase(),
            o = function(e) {
                var t = new RegExp(e + "/([^\\s\\_\\-]+)");
                return e = (n.match(t) || [])[1], e || !1
            },
            i = {
                os: function() {
                    return /windows/.test(n) ? "windows" : /linux/.test(n) ? "linux" : /iphone|ipod|ipad|ios/.test(n) ? "ios" : void 0
                }(),
                ie: function() {
                    return !!(e.ActiveXObject || "ActiveXObject" in e) && ((n.match(/msie\s(\d+)/) || [])[1] || "11")
                }(),
                weixin: o("micromessenger")
            };
        return t && !i[t] && (i[t] = o(t)), i.android = /android/.test(n), i.ios = "ios" === i.os, i
    }, t.fn.hint = function() {
        return { error: r }
    }, t.fn.each = function(e, t) {
        var n, o = this;
        if ("function" != typeof t) return o;
        if (e = e || [], e.constructor === Object) {
            for (n in e)
                if (t.call(e[n], n, e[n])) break
        } else
            for (n = 0; n < e.length && !t.call(e[n], n, e[n]); n++);
        return o
    }, t.fn.stope = function(t) { t = t || e.event, t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0 }, t.fn.onevent = function(e, t, n) {
        return "string" != typeof e || "function" != typeof n ? this : (o.event[e + "." + t] = [n], this)
    }, t.fn.event = function(e, t, n) {
        var i = this,
            r = null,
            l = t.match(/\(.*\)$/) || [],
            a = (t = e + "." + t).replace(l, ""),
            u = function(e, t) {
                var o = t && t.call(i, n);
                o === !1 && null === r && (r = !1)
            };
        return layui.each(o.event[a], u), l[0] && layui.each(o.event[t], u), r
    }, e.layui = new t
}(window);
layui.define("jquery", function(i) {
    "use strict";
    var a = layui.jquery,
        t = (layui.hint(), layui.device()),
        l = "element",
        e = "layui-this",
        n = "layui-show",
        s = function() { this.config = {} };
    s.prototype.set = function(i) {
        var t = this;
        return a.extend(!0, t.config, i), t
    }, s.prototype.on = function(i, a) {
        return layui.onevent(l, i, a)
    }, s.prototype.tabAdd = function(i, t) {
        var l = ".layui-tab-title",
            e = a(".layui-tab[lay-filter=" + i + "]"),
            n = e.children(l),
            s = e.children(".layui-tab-content");
        return n.append('<li lay-id="' + (t.id || "") + '">' + (t.title || "unnaming") + "</li>"), s.append('<div class="layui-tab-item">' + (t.content || "") + "</div>"), f.hideTabMore(!0), f.tabAuto(), this
    }, s.prototype.tabDelete = function(i, t) {
        var l = ".layui-tab-title",
            e = a(".layui-tab[lay-filter=" + i + "]"),
            n = e.children(l),
            s = n.find('>li[lay-id="' + t + '"]');
        return f.tabDelete(null, s), this
    }, s.prototype.tabChange = function(i, t) {
        var l = ".layui-tab-title",
            e = a(".layui-tab[lay-filter=" + i + "]"),
            n = e.children(l),
            s = n.find('>li[lay-id="' + t + '"]');
        return f.tabClick(null, null, s), this
    }, s.prototype.progress = function(i, t) {
        var l = "layui-progress",
            e = a("." + l + "[lay-filter=" + i + "]"),
            n = e.find("." + l + "-bar"),
            s = n.find("." + l + "-text");
        return n.css("width", t), s.text(t), this
    };
    var o = ".layui-nav",
        c = "layui-nav-item",
        r = "layui-nav-bar",
        u = "layui-nav-tree",
        d = "layui-nav-child",
        h = "layui-nav-more",
        y = "layui-anim layui-anim-upbit",
        f = {
            tabClick: function(i, t, s) {
                var o = s || a(this),
                    t = t || o.parent().children("li").index(o),
                    c = o.parents(".layui-tab").eq(0),
                    r = c.children(".layui-tab-content").children(".layui-tab-item"),
                    u = c.attr("lay-filter");
                o.addClass(e).siblings().removeClass(e), r.eq(t).addClass(n).siblings().removeClass(n), layui.event.call(this, l, "tab(" + u + ")", { elem: c, index: t })
            },
            tabDelete: function(i, t) {
                var l = t || a(this).parent(),
                    n = l.index(),
                    s = l.parents(".layui-tab").eq(0),
                    o = s.children(".layui-tab-content").children(".layui-tab-item");
                l.hasClass(e) && (l.next()[0] ? f.tabClick.call(l.next()[0], null, n + 1) : l.prev()[0] && f.tabClick.call(l.prev()[0], null, n - 1)), l.remove(), o.eq(n).remove(), setTimeout(function() { f.tabAuto() }, 50)
            },
            tabAuto: function() {
                var i = "layui-tab-more",
                    l = "layui-tab-bar",
                    e = "layui-tab-close",
                    n = this;
                a(".layui-tab").each(function() {
                    var s = a(this),
                        o = s.children(".layui-tab-title"),
                        c = (s.children(".layui-tab-content").children(".layui-tab-item"), 'lay-stope="tabmore"'),
                        r = a('<span class="layui-unselect layui-tab-bar" ' + c + "><i " + c + ' class="layui-icon">&#xe61a;</i></span>');
                    if (n === window && 8 != t.ie && f.hideTabMore(!0), s.attr("lay-allowClose") && o.find("li").each(function() {
                            var i = a(this);
                            if (!i.find("." + e)[0]) {
                                var t = a('<i class="layui-icon layui-unselect ' + e + '">&#x1006;</i>');
                                t.on("click", f.tabDelete), i.append(t)
                            }
                        }), o.prop("scrollWidth") > o.outerWidth() + 1) {
                        if (o.find("." + l)[0]) return;
                        o.append(r), s.attr("overflow", ""), r.on("click", function(a) { o[this.title ? "removeClass" : "addClass"](i), this.title = this.title ? "" : "收缩" })
                    } else o.find("." + l).remove(), s.removeAttr("overflow")
                })
            },
            hideTabMore: function(i) {
                var t = a(".layui-tab-title");
                i !== !0 && "tabmore" === a(i.target).attr("lay-stope") || (t.removeClass("layui-tab-more"), t.find(".layui-tab-bar").attr("title", ""))
            },
            clickThis: function() {
                var i = a(this),
                    t = i.parents(o),
                    n = t.attr("lay-filter");
                i.find("." + d)[0] || (t.find("." + e).removeClass(e), i.addClass(e), layui.event.call(this, l, "nav(" + n + ")", i))
            },
            clickChild: function() {
                var i = a(this),
                    t = i.parents(o),
                    n = t.attr("lay-filter");
                t.find("." + e).removeClass(e), i.addClass(e), layui.event.call(this, l, "nav(" + n + ")", i)
            },
            showChild: function() {
                var i = a(this),
                    t = i.parents(o),
                    l = i.parent(),
                    e = i.siblings("." + d);
                t.hasClass(u) && (e.removeClass(y), l["none" === e.css("display") ? "addClass" : "removeClass"](c + "ed"))
            },
            collapse: function() {
                var i = a(this),
                    t = i.find(".layui-colla-icon"),
                    e = i.siblings(".layui-colla-content"),
                    s = i.parents(".layui-collapse").eq(0),
                    o = s.attr("lay-filter"),
                    c = "none" === e.css("display");
                if ("string" == typeof s.attr("lay-accordion")) {
                    var r = s.children(".layui-colla-item").children("." + n);
                    r.siblings(".layui-colla-title").children(".layui-colla-icon").html("&#xe602;"), r.removeClass(n)
                }
                e[c ? "addClass" : "removeClass"](n), t.html(c ? "&#xe61a;" : "&#xe602;"), layui.event.call(this, l, "collapse(" + o + ")", { title: i, content: e, show: c })
            }
        };
    s.prototype.init = function(i) {
        var l = {
            tab: function() { f.tabAuto.call({}) },
            nav: function() {
                var i, l, e, s = 200,
                    p = function(o, c) {
                        var r = a(this),
                            f = r.find("." + d);
                        c.hasClass(u) ? o.css({ top: r.position().top, height: r.children("a").height(), opacity: 1 }) : (f.addClass(y), o.css({ left: r.position().left + parseFloat(r.css("marginLeft")), top: r.position().top + r.height() - 5 }), i = setTimeout(function() { o.css({ width: r.width(), opacity: 1 }) }, t.ie && t.ie < 10 ? 0 : s), clearTimeout(e), "block" === f.css("display") && clearTimeout(l), l = setTimeout(function() { f.addClass(n), r.find("." + h).addClass(h + "d") }, 300))
                    };
                a(o).each(function() {
                    var t = a(this),
                        o = a('<span class="' + r + '"></span>'),
                        y = t.find("." + c);
                    t.find("." + r)[0] || (t.append(o), y.on("mouseenter", function() { p.call(this, o, t) }).on("mouseleave", function() { t.hasClass(u) || (clearTimeout(l), l = setTimeout(function() { t.find("." + d).removeClass(n), t.find("." + h).removeClass(h + "d") }, 300)) }), t.on("mouseleave", function() { clearTimeout(i), e = setTimeout(function() { t.hasClass(u) ? o.css({ height: 0, top: o.position().top + o.height() / 2, opacity: 0 }) : o.css({ width: 0, left: o.position().left + o.width() / 2, opacity: 0 }) }, s) })), y.each(function() {
                        var i = a(this),
                            t = i.find("." + d);
                        if (t[0] && !i.find("." + h)[0]) {
                            var l = i.children("a");
                            l.append('<span class="' + h + '"></span>')
                        }
                        i.off("click", f.clickThis).on("click", f.clickThis), i.children("a").off("click", f.showChild).on("click", f.showChild), t.children("dd").off("click", f.clickChild).on("click", f.clickChild)
                    })
                })
            },
            breadcrumb: function() {
                var i = ".layui-breadcrumb";
                a(i).each(function() {
                    var i = a(this),
                        t = i.attr("lay-separator") || ">",
                        l = i.find("a");
                    l.find(".layui-box")[0] || (l.each(function(i) { i !== l.length - 1 && a(this).append('<span class="layui-box">' + t + "</span>") }), i.css("visibility", "visible"))
                })
            },
            progress: function() {
                var i = "layui-progress";
                a("." + i).each(function() {
                    var t = a(this),
                        l = t.find(".layui-progress-bar"),
                        e = l.attr("lay-percent");
                    l.css("width", e), t.attr("lay-showPercent") && setTimeout(function() {
                        var a = Math.round(l.width() / t.width() * 100);
                        a > 100 && (a = 100), l.html('<span class="' + i + '-text">' + a + "%</span>")
                    }, 350)
                })
            },
            collapse: function() {
                var i = "layui-collapse";
                a("." + i).each(function() {
                    var i = a(this).find(".layui-colla-item");
                    i.each(function() {
                        var i = a(this),
                            t = i.find(".layui-colla-title"),
                            l = i.find(".layui-colla-content"),
                            e = "none" === l.css("display");
                        t.find(".layui-colla-icon").remove(), t.append('<i class="layui-icon layui-colla-icon">' + (e ? "&#xe602;" : "&#xe61a;") + "</i>"), t.off("click", f.collapse).on("click", f.collapse)
                    })
                })
            }
        };
        return layui.each(l, function(i, a) { a() })
    };
    var p = new s,
        v = a(document);
    p.init();
    var b = ".layui-tab-title li";
    v.on("click", b, f.tabClick), v.on("click", f.hideTabMore), a(window).on("resize", f.tabAuto), i(l, function(i) {
        return p.set(i)
    })
});
